home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
PInterfaces
/
ToolUtils.p
< prev
next >
Wrap
Text File
|
1996-05-01
|
4KB
|
160 lines
{
File: ToolUtils.p
Contains: Toolbox Utilities Interfaces.
Version: Technology: System 7.5
Release: Universal Interfaces 3.0d3 on Copland DR1
Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
Bugs?: If you find a problem with this file, send the file and version
information (from above) and the problem description to:
Internet: apple.bugs@applelink.apple.com
AppleLink: APPLE.BUGS
}
{$IFC UNDEFINED UsingIncludes}
{$SETC UsingIncludes := 0}
{$ENDC}
{$IFC NOT UsingIncludes}
UNIT ToolUtils;
INTERFACE
{$ENDC}
{$IFC UNDEFINED __TOOLUTILS__}
{$SETC __TOOLUTILS__ := 1}
{$I+}
{$SETC ToolUtilsIncludes := UsingIncludes}
{$SETC UsingIncludes := 1}
{$IFC UNDEFINED __TYPES__}
{$I Types.p}
{$ENDC}
{$IFC UNDEFINED __OSUTILS__}
{$I OSUtils.p}
{$ENDC}
{$IFC OLDROUTINELOCATIONS }
{$IFC UNDEFINED __FIXMATH__}
{$I FixMath.p}
{$ENDC}
{$IFC UNDEFINED __ICONS__}
{$I Icons.p}
{$ENDC}
{$IFC UNDEFINED __QUICKDRAW__}
{$I Quickdraw.p}
{$ENDC}
{$IFC UNDEFINED __TEXTUTILS__}
{$I TextUtils.p}
{$ENDC}
{$ENDC}
{$PUSH}
{$ALIGN MAC68K}
{$LibExport+}
{
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Note:
The following routines that used to be in this header file, have moved to
more appropriate headers. If OLDROUTINELOCATIONS is 0, then you will have
to include the headers below to use the following functions.
FixMath.h: FixMul
FixRatio
FixRound
Icons.h: GetIcon
PlotIcon
Quickdraw.h: AngleFromSlope
DeltaPoint
GetCursor
GetIndPattern
GetPattern
GetPicture
PackBits
ScreenRes
ShieldCursor
SlopeFromAngle
UnpackBits
TextUtils.h: Munger
GetIndString
GetString
NewString
SetString
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
}
{ Used only in the LongMul function. }
TYPE
Int64BitPtr = ^Int64Bit;
Int64Bit = RECORD
hiLong: SInt32;
loLong: UInt32;
END;
{$IFC FOR_SYSTEM7_AND_SYSTEM8_PREEMPTIVE }
FUNCTION BitTst(bytePtr: UNIV Ptr; bitNum: LONGINT): BOOLEAN;
{$IFC NOT GENERATINGCFM}
INLINE $A85D;
{$ENDC}
PROCEDURE BitSet(bytePtr: UNIV Ptr; bitNum: LONGINT);
{$IFC NOT GENERATINGCFM}
INLINE $A85E;
{$ENDC}
PROCEDURE BitClr(bytePtr: UNIV Ptr; bitNum: LONGINT);
{$IFC NOT GENERATINGCFM}
INLINE $A85F;
{$ENDC}
FUNCTION BitAnd(value1: LONGINT; value2: LONGINT): LONGINT;
{$IFC NOT GENERATINGCFM}
INLINE $A858;
{$ENDC}
FUNCTION BitOr(value1: LONGINT; value2: LONGINT): LONGINT;
{$IFC NOT GENERATINGCFM}
INLINE $A85B;
{$ENDC}
FUNCTION BitXor(value1: LONGINT; value2: LONGINT): LONGINT;
{$IFC NOT GENERATINGCFM}
INLINE $A859;
{$ENDC}
FUNCTION BitNot(value: LONGINT): LONGINT;
{$IFC NOT GENERATINGCFM}
INLINE $A85A;
{$ENDC}
FUNCTION BitShift(value: LONGINT; count: INTEGER): LONGINT;
{$IFC NOT GENERATINGCFM}
INLINE $A85C;
{$ENDC}
{$IFC GENERATING68K }
PROCEDURE LongMul(a: LONGINT; b: LONGINT; VAR result: Int64Bit);
{$IFC NOT GENERATINGCFM}
INLINE $A867;
{$ENDC}
{$ENDC}
FUNCTION HiWord(x: LONGINT): INTEGER;
{$IFC NOT GENERATINGCFM}
INLINE $A86A;
{$ENDC}
FUNCTION LoWord(x: LONGINT): INTEGER;
{$IFC NOT GENERATINGCFM}
INLINE $A86B;
{$ENDC}
{$ENDC}
{$ALIGN RESET}
{$POP}
{$SETC UsingIncludes := ToolUtilsIncludes}
{$ENDC} {__TOOLUTILS__}
{$IFC NOT UsingIncludes}
END.
{$ENDC}